package com.itheima.controller;

import com.itheima.domain.vo.PageBeanVo;
import com.itheima.manager.LogsManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LogsController {
    @Autowired
    private LogsManager logsManager;

    @GetMapping("/logs")
    private PageBeanVo logs(@RequestParam(defaultValue = "1") Integer page,
                            @RequestParam(defaultValue = "10") Integer pagesize) {
      return logsManager.logs(page,pagesize);
    }
}
